package com.apes.enquiry.orderForm.repository;

import com.apes.enquiry.orderForm.model.OrderForm;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * 类描述：
 *
 * @ClassName AccumulatorExtendRepository
 * @Description 描述
 * @Author lilong
 * @Date 2022/10/31 14:04
 * @Version 1.0
 */
public interface OrderFormRepository extends CustomRepository<OrderForm,String> {
    @Query(value="SELECT * FROM  sp_order_form T  WHERE T.source=:source", nativeQuery = true)
    List<OrderForm> findBySource(@Param("source") String source);

}
